﻿using Bootstrap.Template.Thumbnail;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Bootstrap.Control
{
    public class BootstrapThumbnailContainer:WebControl
    {
        #region Properties
        
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public List<BootstrapThumbnail> InnerList { get; set; }

        #endregion

        #region Methods
        
        protected override void Render(HtmlTextWriter writer)
        {
            base.Render(writer);

            foreach (var item in InnerList)
            {
                item.RenderControl(writer);
            }
        }

        #endregion
    }
}
